using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Vod_List -  视频 - 对象继承类
    /// </summary>
    [MetadataType(typeof(VodListValidaTion))]
    public class VodList : IVodList<VodList>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class VodListValidaTion
       {

     

        /// <summary>
        /// 视频ID
        /// </summary>
        [Display(Name ="视频ID")]
        [Required]
        [StringLength(36)]
        public String VodId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 标题
        /// </summary>
        [Display(Name ="标题")]
        [Required]
        [StringLength(50)]
        public String Title
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 所属专辑
        /// </summary>
        [Display(Name ="所属专辑")]
        [Required]
        [StringLength(36)]
        public String VodAlbum
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 上传用户
        /// </summary>
        [Display(Name ="上传用户")]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 视频截图ID
        /// </summary>
        [Display(Name ="视频截图ID")]
        [StringLength(36)]
        public String ImgId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 上传时间
        /// </summary>
        [Display(Name ="上传时间")]
        [Required]

        public DateTime SubmitTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 时长
        /// </summary>
        [Display(Name ="时长")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int Times
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 点播数
        /// </summary>
        [Display(Name ="点播数")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int Click
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 视频作者
        /// </summary>
        [Display(Name ="视频作者")]
        [StringLength(15)]
        public String Author
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 视频说明
        /// </summary>
        [Display(Name ="视频说明")]
        [StringLength(500)]
        public String Detailed
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 视频格式
        /// </summary>
        [Display(Name ="视频格式")]
        [StringLength(20)]
        public String Format
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name ="排序")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int Sno
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
